﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace work4
{
	class Teacher
	{
		public string stuName;
		//将老师字段设置为静态
		public static string TeaName;
		//无参
		public Teacher(){
		
		}
		public Teacher(string stuName)
		{
			this.stuName = stuName;
		
		}
		public void Print() {
			Console.WriteLine("大家好我的姓名叫{0},俺老师叫{1}",stuName,TeaName);
		}
		
	}
}

